<template>
  <button @click="handleClick">{{ text }}</button>
</template>
<script>
export default {
  props: {
    text: {
      type: String,
      default: "默认按钮",
    },
  },
  methods: {
    handleClick(e) {
      console.log(e);
      this.$emit("click");
    },
  },

  data() {
    return {
      options: null,
    };
  },
};
</script>
<style></style>
